<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Jialeo\LaravelSchemaExtend\Schema;

class AddColumnFarenNameOpenShopUserContract extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('open_shop_user_contract', function (Blueprint $table) {
            $table->string('legalPerson')->default('')->after('address')->comment('法人姓名');
            $table->string('businessLicenseImg')->default('')->after('address')->comment('营业执照');
            $table->string('businessLicenseContent', 2000)->default('')->after('address')->comment('阿里云营业执照返回的所有数据');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('open_shop_user_contract', function (Blueprint $table) {
            $table->dropColumn('legalPerson');
            $table->dropColumn('businessLicenseImg');
            $table->dropColumn('businessLicenseContent');
        });
    }
}
